package com.dt76.smallloanbackenduser.remote.ysy;

import com.dt76.smallloanbackenduser.hystrix.ysy.InOutHystrix;
import com.dt76.smallloanbackenduser.pojo.ysy.YVerify;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "smallloan-backend-service",fallback = InOutHystrix.class)
public interface InOutRemote {
    @RequestMapping("/ysy/inOut")
    public List<YVerify> qryAll();

    @RequestMapping("/ysy/delInout")
    public Result delInout(@RequestParam("rId") int rId);
}
